#ifndef ZSTACK_MEM_OP_H
#define ZSTACK_MEM_OP_H

typedef unsigned int U32;

enum mem_op_type
{
    MEM_OP_SWD,
    MEM_OP_IIC,
    MEM_OP_GDB,
    MEM_OP_PSEDU,
};

struct mem_op
{
    U32(*reg_wr)(U32 addr, U32 width, U32 value);
    U32(*reg_rd)(U32 addr, U32 width, U32* value);
};

extern struct mem_op* mem_op_get(enum mem_op_type type);

#endif